package com.bupt.dao;

import com.bupt.bean.ChannelDirection;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DirectionRepository extends JpaRepository<ChannelDirection,String>, JpaSpecificationExecutor<ChannelDirection> {


    List<ChannelDirection> findAllByDeviceChannelId(Integer deviceChannelId);

    ChannelDirection findByChannelDirectionId(Integer channelDirectionId);

    void deleteByChannelDirectionId(Integer channelDirectionId);
}
